package pl.lodz.p.kipme.util;

import pl.lodz.p.kipme.bo.Transaction;
import pl.lodz.p.kipme.entities.TransactionEntity;

public class TransactionUtil {
	public static Transaction transactionEntity2Transaction(TransactionEntity entity){
		Transaction transaction = new Transaction();
		transaction.setAmount(entity.getAmount());
		transaction.setNumOfProducts(entity.getNumOfProducts());
		transaction.setProductCode(entity.getProductCode());
		transaction.setSaleDate(entity.getSaleDate());
		return transaction;
	}
}
